﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QServices;

public partial class MysqlDbContext:DbContext
{


	public string dbConnectionstring { get; set; }

	public MysqlDbContext(string connstr)
	{
		this.dbConnectionstring = connstr;
	}

	protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
	{
		optionsBuilder.UseMySql(this.dbConnectionstring,MariaDbServerVersion.AutoDetect(this.dbConnectionstring));
		base.OnConfiguring(optionsBuilder);
	}

	protected override void OnModelCreating(ModelBuilder modelBuilder)
	{

		base.OnModelCreating(modelBuilder);
	}






}
